Skip to content

Fix camera docs and port missing features to camera_apple#118165

Merged
Repiteo merged 2 commits intogodotengine:masterfrom
shiena:feature/update-apple-camera
Apr 7, 2026
Merged

Fix camera docs and port missing features to camera_apple#118165
Repiteo merged 2 commits intogodotengine:masterfrom
shiena:feature/update-apple-camera

Conversation

@shiena
Copy link
Copy Markdown
Contributor

@shiena shiena commented Apr 3, 2026

Follow-up to #115502, #106305, and godot-sdk-integrations/godot-ios-plugins#89.

#115502 reintegrated the iOS camera module into the main repo as camera_apple, but the documentation still referenced the old godot-ios-plugins requirement, and several features from #106305 / godot-ios-plugins#89 were not yet ported.

  • Fix outdated docs that still referenced godot-ios-plugins for iOS camera support.
  • Port screen rotation handling that accounts for front/back camera differences.
  • Port initial orientation detection when feeds are discovered.
  • Stop camera capture on background transition and restore on foreground.
  • Handle pixel buffer row stride to prevent data corruption on padded buffers.
  • Track device lock state and properly unlock on deactivation.
  • Validate capture session inputs/outputs before adding, with proper cleanup on failure.

shiena added 2 commits April 3, 2026 16:36
Update CameraFeed.xml to reference EditorExportPlatformIOS.modules/camera
instead of the removed godot-ios-plugins repository, matching the already
updated CameraServer.xml documentation.
- App pause/resume: Stop camera capture on background transition and
  restore on foreground, preventing resource leaks
- Row stride: Handle pixel buffer row stride != width to prevent
  data corruption on devices with padded buffers
- Device lock: Track lock state and properly unlock on deactivation
- Input/output validation: Check canAddInput/canAddOutput before
  adding to capture session, with proper cleanup on failure
@akien-mga akien-mga modified the milestones: 4.x, 4.7 Apr 7, 2026
@Repiteo Repiteo merged commit df7e539 into godotengine:master Apr 7, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Apr 7, 2026

Thanks!

@shiena shiena deleted the feature/update-apple-camera branch April 7, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants